<div class="main_advertisement">
    <div class="head-divide">
        <div class="head-dividetext">
            <span ng-repeat="pagelist in pageList"><a ng-href="{{pagelist.url}}">{{pagelist.name}}</a></span>
        </div>
    </div>
    <div class="main_ad_market">
        <div class="main_ad_right">
            <img ng-src="{{market.mPic}}" alt=""/>
        </div>
        <div class="main_ad_introduce">
            <div class="market_name"><span class="market_name_write">{{market.mName}}</span><span
                    ng-show="market.mBranchname!=null&&market.mBranchname!=''">({{market.mBranchname}})</span></div>
            <div class="market_address"><span class="market_address_write">{{market.mAddr}}</span></div>
            <div class="market_details">
                <div>
                    <span class="market_address_write">超市等级:</span>
                    <span class="market_name_write">{{market.mLevel}}类超市</span>
                    <span class="market_address_write">经营：</span>
                    <span class="market_name_write">{{market.mType}}</span>
                </div>
                <div>
                    <span class="market_address_write">人流量：</span>
                    <span class="market_name_write">{{market.mFlow}}次每天</span>
                    <span class="market_address_write">屏数：</span>
                    <span class="market_name_write">{{market.mLablenum}}面</span>
                </div>
                <div>
                    <span class="market_address_write">档期：</span>
                    <span class="timeSet">
                        <span style="color: #3c763d;">开始时间</span>
                        <input class="inputTime" placeholder="请选择广告开始时间..." type="text" id="datetimepicker">
                    </span>
                    <span class="timeSet">
                        <span style="color: #3c763d;">结束时间</span>
                        <input class="inputTime" placeholder="请选择广告结束时间..." type="text" id="datetimepicker1">
                    </span>
                </div>
            </div>
            <button type="button" class="button_put" ng-click="addTime()">立即投放</button>
        </div>
    </div>
    <div class="middle_slider navbar">
        <ul class="nav navbar-nav market_ad_hover">
            <li class="active"><a href="##">屏位展示</a></li>
            <li><a href="##">套餐介绍</a></li>
            <!--<li><a href="##">口碑</a></li>-->
        </ul>
    </div>
    <div class="market-container">
        <div class="market_map" id="admap"></div>
        <div class="market_intro_one">
            <ul class="ul_intro">
                <li class="li_write"><span>{{market.mIntroduction}}</span></li>
                <li>
                    <div class="li_img"></div>
                </li>
                <li>
                    <div class="li_img" style="border-bottom: none"></div>
                </li>
                <li class="li_write"><span>永辉超市成立于1998年，总部设在福建省福州市。十年创业，飞跃发展，中国500强企业之一，是国家级“流通”及“农业产品化”双龙头企业，获取“中国驰名商标”，上海主板上市</span>
                </li>
                <li class="li_write" style="border-bottom: none"><span>永辉超市成立于1998年，总部设在福建省福州市。十年创业，飞跃发展，中国500强企业之一，是国家级“流通”及“农业产品化”双龙头企业，获取“中国驰名商标”，上海主板上市</span>
                </li>
                <li>
                    <div class="li_img"></div>
                </li>
            </ul>
        </div>
    </div>
    <ul class="market_under">
        <li class="dotted_line">
            <div class="market_title">基础版</div>
            <div class="market_mid_write">·能提交轮播文字<br>·能提交详情文字及二维码（url或图片）<br>·第二屏能预览效果能跟踪后续浏览量及转换率</div>
            <div class="market_mid_write">观看案例</div>
            <div class="market_mid_write"></div>
            <button type="button" class="button_put_in" ng-click="show_advert()">立即投放</button>
        </li>
        <li class="market_middle">
            <div class="market_title">互动版</div>
            <div class="market_mid_write">·能提交轮播文字<br>·能提交详情文字及二维码（url或图片）<br>·第二屏能预览效果能跟踪后续浏览量及转换率</div>
            <div class="market_mid_write">·能支持H5页定制（另外收费）<br>·能代发微信卡券<br>·有一张用微信发红包的流程图及售前服务ESL轮播有卡券标示</div>
            <div class="market_mid_write">观看案例</div>
            <button type="button" class="button_put_in">立即投放</button>
        </li>
    </ul>
    <!--<div class="market_comment">-->
    <!--<div class="comment_left">-->
    <!--<ul>-->
    <!--<li>-->
    <!--<div class="comment_middle"><span>陈先生</span><span style="float: right">赞成(50)</span></div>-->
    <!--<div class="comment_mid_write " >·能提交轮播文字<br>·能提交详情文字及二维码（url或图片）<br>·第二屏能预览效果能跟踪后续浏览量及转换率</div>-->
    <!--</li>-->
    <!--<li>-->
    <!--<div class="comment_middle"><span>陈先生</span><span style="float: right">赞成(50)</span></div>-->
    <!--<div class="comment_mid_write " >·能提交轮播文字<br>·能提交详情文字及二维码（url或图片）<br>·第二屏能预览效果能跟踪后续浏览量及转换率</div>-->
    <!--</li>-->
    <!--<li>-->
    <!--<div class="comment_middle"><span>陈先生</span><span style="float: right">赞成(50)</span></div>-->
    <!--<div class="comment_mid_write " >·能提交轮播文字<br>·能提交详情文字及二维码（url或图片）<br>·第二屏能预览效果能跟踪后续浏览量及转换率</div>-->
    <!--</li>-->
    <!--</ul>-->
    <!--</div>-->
    <!--<div class="comment_right"><img class="comment_left_img"></div>-->
    <!--</div>-->
    <div id="qrcodecontext"
         style="position: fixed;top: 0;left: 0;bottom: 0;width: 100%;background-color: rgba(0,0,0,0.7);display: none;z-index: 2000;">
        <!--<div ng-click="qrcodehide()"
             style="position: absolute;top: 100px;right: 100px;width: 20px;height: 20px;font-size: 25px;color: #fff;">关闭
        </div>-->
        <div id="qrcode" style="width: 300px;height: 300px;position: absolute;top:50%;
    left: 50%;-webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);"></div>
    </div>
    <div id="advadd" class="adv_add">
        <div class="adv_add_bac" ng-click="addAdvHide()"></div>
        <div class="market_footer_context">
            <div class="market_footer">
                <div class="hide_adv_add" ng-click="addAdvHide()">
                    <span class="glyphicon glyphicon-remove"></span>
                </div>
                <form name="advForm" ng-submit="submit_adv(adv)">
                    <div class="footer_title">
                        <div class="market_footer_title">广告投放</div>
                    </div>
                    <div class="market_table">
                        <ul>
                            <li>
                                <span class="market_footer_span">所属类别:</span>
                                <select ng-model="adv.aType" class="market_footer_input">
                                    <option ng-repeat="type in aTypeList" value="{{type.num}}">{{type.name}}</option>
                                </select>
                                <!--<span class="market_footer_sp">0/10</span>-->
                            </li>
                            <li>
                                <span class="market_footer_span">名称:</span>
                                <input type="text" ng-model="adv.aName" required="" class="market_footer_input">
                                <span class="required market_span" ng-hide="adv.aName.length >0">*必填项</span>
                            </li>
                            <li>
                                <span class="market_footer_span">二维码内容:</span>
                                <input type="text" ng-model="editAdv.aUrl" required="" class="market_footer_input"
                                       placeholder="可以是文本、网址等">
                                <span class="required market_span" ng-hide="editAdv.aUrl.length>0">*必填项</span>
                            </li>
                            <li>
                                <span class="market_footer_span">二维码介绍:</span>
                                <input type="text" ng-model="adv.aQrcodetxt" required="" maxlength="18"
                                       class="market_footer_input">
                                <span class="required market_span" ng-hide="adv.aQrcodetxt.length>0">*必填项</span>
                                <span class="market_footer_sp">{{adv.aQrcodetxt.length?adv.aQrcodetxt.length:0}}/18</span>
                            </li>
                            <li>
                                <span class="market_footer_span">简介:</span>
                                <input type="text" ng-model="adv.aHometxt" required="" maxlength="25"
                                       class="market_footer_input">
                                <span class="required market_span" ng-hide="adv.aHometxt.length>0">*必填项</span>
                                <span class="market_footer_sp">{{adv.aHometxt.length?adv.aHometxt.length:0}}/25</span>
                            </li>
                            <li style="height: 70px">
                                <span class="market_footer_span">详细内容:</span>
                        <textarea style="height: 50px" ng-model="adv.aDetailtxt" required="" maxlength="80"
                                  class="market_footer_input"></textarea>
                                <span class="required market_span" ng-hide="adv.aDetailtxt.length>0">*必填项</span>
                                <span class="market_footer_sp">{{adv.aDetailtxt.length?adv.aDetailtxt.length:0}}/80</span>
                            </li>
                            <li style="height: 70px">
                                <div style="float: left">
                                    <span class="market_footer_span">首页图片:</span>
                                    <button class="homepage" ng-click="editModule(plate1)"
                                            style="height: 30px;margin-left: 20px"></button>
                                </div>
                                <div style="float: right;margin-right: 150px">
                                    <span class="market_footer_span">详情页图片:</span>
                                    <button class="detailpage" ng-click="editModule(plate1)"
                                            style="height: 30px;margin-left: 20px"></button>
                                </div>
                            </li>
                            <li style="height: 70px">
                                <span class="market_footer_span">备注:</span>
                                <textarea ng-model="byMessage" class="market_footer_input"
                                          style="height: 60px"></textarea>
                            </li>
                        </ul>
                    </div>
                    <div class="market_button_div">
                        <button type="submit" class="btn btn-success market_button active">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<div class="popupBg"></div>
<div id="formDialogModule" class="formDialog ui-draggable">
    <div class="formTL">
        <div class="formTR">
            <div class="formTC">编辑{{edit_text}}</div>
        </div>
    </div>
    <form id="moduleForm" name="plateForm" ng-submit="submit('moduleCarousel',moduleCarousel)" class="formBL">
        <div class="formBR">
            <div class="formBC">
                <div class="formMSG">
                    <div class="fk-imageAdd">
                        <div>最多上传10张图片</div>
                        <div class="photo-add-panel">
                            <div class="upload-panel">
                                <div class="photoList">
                                    <ul id="fk-imgContainer" class="img-container ui-sortable">
                                        <li class="img-panel J_imgPanel" title="" ng-repeat="carousel in moduleCarousel">
                                            <div class="photo-border">
                                                <div class="photoHover">
                                                    <a class="editBut J_photoHandle"
                                                       title="编辑图片"></a>
                                                    <a class="deleteBut J_photoHandle" ng-click="removeCarouselImg(carousel)" title="删除图片"></a>
                                                </div>
                                                <table>
                                                    <tbody>
                                                    <tr>
                                                        <td valign="middle"><img ng-src="{{carousel.image}}" class="Js_lazyloadimg" alt="{{carousel.image.alt}}"></td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </li>
                                        <li class="J_imgPanel J_moreImgPanel" id="fk-add-photo">
                                            <div class="add-photo fk-uploadButton">
                                                <div class="add-photo-picture">+</div>
                                                <div class="add-photo-text">添加图片</div>
                                                <input class="imageUploadModule" name="carousel" type="file" accept="image/jpg,image/jpeg,image/bmp,image/png,image/gif">
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="add-photo-prompt">
                            <div class="add-photo-btn fk-uploadButton">
                                <input name="imageUploadModule" class="imageUploadModule" type="file" accept="image/jpg,image/jpeg,image/bmp,image/png,image/gif">
                                <div class="add-photo-btn-picture">+</div>
                                <div class="add-photo-btn-text">继续添加</div>
                            </div>
                            <div class="show-photo-list">
                                <div class="add-photo-btn-text" style="display:inline;">图片已上传</div>
                                <div id="fk-photoNumber" class="add-photo-btn-text" style="display:inline;">{{moduleCarousel.length}}</div>
                                <div class="add-photo-btn-text" style="display:inline;">张</div>
                            </div>
                        </div>
                    </div>
                </div>
                <table cellpadding="0" cellspacing="0" class="formBtns" style="display: table;">
                    <tbody>
                    <tr>
                        <td align="center" style="padding:15px 0px;">
                            <button type="submit" type="button" class="btn btn-primary">保存</button>
                            <input confirmed-click="close('#formDialogModule')" ng-confirm-click="确定放弃编辑?" type="button" value="取消" class="btn btn-warning">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </form>
    <a confirmed-click="close('#formDialogModule')" ng-confirm-click="确定放弃编辑?" class="formX">&#215;</a>
</div>